package pojo;

import anno.Column;
import anno.Table;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_exam_paper")
public class ExamPaper {
    @Column(isId = true)
    private Integer paperId;
    private String paperName;
    private Integer duration;
    private Integer totalScore;
    private Integer passScore;
    private String description;
    private String questions;  // JSON string for questions array
    private LocalDateTime createTime;
    private Integer status;
    @Column(ignore = true)
    private List<Question> questionList;  // 存储题目详细信息
}
